package org.jeecg.modules.demo.baseordercommodity.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.baseordercommodity.entity.BaseOrderCommodity;
import org.jeecg.modules.demo.baseordercommodity.entity.CommodityMain;
import org.jeecg.modules.demo.baseordercommodity.entity.OrderCommodityInfo;
import org.jeecg.modules.demo.baseordercommodity.entity.SelfMentionCommodity;

import java.util.List;

/**
 * @Description: 订单商品表
 * @Author: jeecg-boot
 * @Date: 2022-02-11
 * @Version: V1.0
 */
public interface IBaseOrderCommodityService extends IService<BaseOrderCommodity> {
    /**
     * 据订单id查询
     *
     * @param
     * @return
     */
    IPage<BaseOrderCommodity> getByOderId(Page<BaseOrderCommodity> page, String orderId);

    /**
     * 根据订单id查询自提商品列表
     *
     * @param orderId
     * @return
     */
    List<SelfMentionCommodity> selectSelfMentionCommodityByOrderId(String orderId);

    /**
     * 查询在线订单商品列表
     *
     * @param pageNo
     * @param pageSize
     * @param storeId
     * @param memberId
     * @param orderStatus
     * @return
     */
    List<CommodityMain> getOnlineOrderCommodityList(Integer pageNo, Integer pageSize, String storeId, String memberId, String orderStatus);

    /**
     * 根据订单id查询商品列表
     *
     * @param orderId
     * @return
     */
    List<OrderCommodityInfo> getCommodityInfoListByOrderId(Integer pageNo, Integer pageSize, String orderId);
}
